package com.bcbim.smart_water_interface.inspection.dao;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class InspectionDAO implements Serializable {

    private String id;

    private String userId;

    private LocalDate inspectionDate;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Integer distance;

    private String del;

    private String createBy;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String updateBy;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
